package com.homework8_1;

public class Frog extends Animal implements Swim {

    public Frog(String name, String color, String kind) {
        super(name, color, kind);
    }

    public Frog() {
    }


    public void eat(){
        System.out.println("青蛙是"+getKind()+"爱吃昆虫");
    }
    public void shout(){
        System.out.println("那只"+getColor()+"色，名叫"+getName()+"的青蛙"+"在呱呱叫");
    }
    public void swim(){
        System.out.println("虽然不是鱼但是青蛙会游泳");
    }
}
